package com.xxl.job.executor.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxl.job.executor.mybatis.dao.JobUserDao;
import com.xxl.job.executor.mybatis.entity.JobUser;
import com.xxl.job.executor.mybatis.service.JobUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JobUser)表服务实现类
 *
 * @author makejava
 * @since 2020-07-13 15:54:52
 */
@Service("jobUserService")
public class JobUserServiceImpl extends ServiceImpl<JobUserDao, JobUser> implements JobUserService {

    @Resource
    private JobUserDao jobUserDao;

    @Override
    public int insertBatch(List<JobUser> jobUsers) {
        return jobUserDao.insertBatch(jobUsers);
    }

    /**
     * 自定义分页查询
     * @param current
     * @param size
     * @return
     */
    @Override
    public List<JobUser> selectByPage(Integer current, Integer size) {
        return jobUserDao.selectByPage(current,size);
    }


}